#!/bin/bash
rm -rf ./$0
key='vian.top';
echo
clear;
echo -e "\033[35m#######################################################################\033[0m"
echo -e "\036                    欢迎使用破解综合脚本\033[31m"
echo ""
echo -e "\036                                        \033[31m"
echo ""
echo -e "\033[36m                      本脚本绿色无毒！    "
echo ""
echo -e "\033[31m                                         By：vian"
echo -e "\033[35m########################################################################\033[0m"
echo
echo -n -e "请输入验证码 [\033[32m $key \033[0m] ："
    read PASSWD
    readkey=$PASSWD
    if [[ ${readkey%%\ *} == $key ]]
    then
        echo 
		echo -e '验证成功！'
		sleep 2
    else
        echo
		echo -e '验证失败 ，请重新尝试!'
		sleep 2
		exit
fi
echo
echo -n -e "正在获取脚本"
echo -n -e "脚本获取成功"
sleep 2
echo 
echo 
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
rm -rf vpn >/dev/null 2>&1
rm -rf dhl >/dev/null 2>&1
rm -rf Html >/dev/null 2>&1
rm -rf llws5 >/dev/null 2>&1
rm -rf BBR6 >/dev/null 2>&1
rm -rf BBR7 >/dev/null 2>&1
rm -rf dd >/dev/null 2>&1
clear;
echo
echo -e "\033[35m=========================================================================\033[0m"
echo -e "\033[36m                             综合服务脚本\033[0m"
echo ""
echo ""
echo ""
echo -e "\033[31m                      1.大灰狼流控        （Centos 6.X）\033[0m"
echo ""
echo -e "\033[32m                      2.Html流控          （Centos 7.X）\033[0m"
echo ""
echo -e "\033[33m                      3.流量卫士5.1                     \033[0m"
echo ""
echo -e "\033[34m                      4.一键加速          （Centos 6.X）\033[0m"
echo ""
echo -e "\033[35m                      5.一键加速          （Centos 7.X）\033[0m"
echo ""
echo -e "\033[36m                      6.一键安装防DD防CC脚本            \033[0m"
echo ""
echo ""
echo ""                 
echo -e "\033[31m                                              By：vian"
echo -e "\033[33m==========================================================================\033[0m"
echo -n "输入选项: " 
read mode
if [[ $mode == "1" ]]     
then     
echo -e "安装类型：\033[32m大灰狼流控\033[0m" ; 
wget --no-check-certificate https://git.oschina.net/chimvian/llws/raw/master/dhl >/dev/null 2>&1
bash dhl
fi

if [[ $mode == "2" ]]     
then     
echo -e "安装类型：\033[32mHtml流控\033[0m" ; 
wget https://git.oschina.net/chimvian/Html/raw/master/Html >/dev/null 2>&1
bash Html
fi

if [[ $mode == "3" ]]     
then     
echo -e "安装类型：\033[32m流量卫士5.1\033[0m" ; 
wget https://git.oschina.net/chimvian/llws/raw/master/llws5 >/dev/null 2>&1
bash llws5
fi

if [[ $mode == "4" ]]     
then     
echo -e "安装类型：\033[32m一键加速\033[0m" ;   
wget https://git.oschina.net/chimvian/GooGle-BBR/raw/master/BBR6 >/dev/null 2>&1
bash BBR6
fi

if [[ $mode == "5" ]]     
then     
echo -e "安装类型：\033[32m一键加速\033[0m" ;   
wget https://git.oschina.net/chimvian/GooGle-BBR/raw/master/BBR7 >/dev/null 2>&1
bash BBR7
fi

if [[ $mode == "6" ]]     
then     
echo -e "安装类型：\033[32m一键安装防DD防CC脚本\033[0m" ;   
wget https://git.oschina.net/chimvian/llws/raw/master/dd >/dev/null 2>&1
bash dd
fi
rm -rf vpn >/dev/null 2>&1
rm -rf dhl >/dev/null 2>&1
rm -rf Html >/dev/null 2>&1
rm -rf llws5 >/dev/null 2>&1
rm -rf BBR6 >/dev/null 2>&1
rm -rf BBR7 >/dev/null 2>&1
rm -rf dd >/dev/null 2>&1
exit 0;